package com.shisfish.library.Impl;

import java.util.List;

import org.springframework.context.ApplicationContext;

import com.shisfish.library.Inter.IItemInter;
import com.shisfish.library.Model.Item;
import com.shisfish.library.Utils.Global.GetACXmlUtils;

public class ItemImpl implements IItemInter {

	private ApplicationContext ac = GetACXmlUtils.getACXml();
	private IItemInter mapper = (IItemInter) ac.getBean("itemMapper");
	
	@Override
	public int insertOne(Item t) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertAll(List<Item> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateOne(Item t) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateAll(List<Item> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Item> selectById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Item> selectByKey(String key) {
		// TODO Auto-generated method stub
		return mapper.selectByKey(key);
	}

	@Override
	public int countAll() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Item> selectAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int deleteOneById(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllById(List<?> ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteOneByKey(String key) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllByKey(List<?> keys) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Item> selectByFcode(int fcode) {
		// TODO Auto-generated method stub
		return mapper.selectByFcode(fcode);
	}

	@Override
	public List<Item> selectByCode(int fcode, int code) {
		// TODO Auto-generated method stub
		return mapper.selectByCode(fcode, code);
	}

}
